<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.common.ToolKit"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.xingzhengshouwen.vo.TXingzhengshouwenNeirong"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.xingzhengshouwen.vo.TXingzhengshouwenFujian"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.xingzhengshouwen.vo.TXingzhengshouwenYijian"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
TXingzhengshouwenNeirong xingzhengshouwenNeirong = (TXingzhengshouwenNeirong)request.getAttribute("xingzhengshouwenNeirong");
Long  taskid = (Long)request.getAttribute("taskid"); 
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  	<meta http-equiv="x-ua-compatible" content="ie=7" />
    <base href="<%=basePath%>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>办公室办理</title>

<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" />  
<link href="<%=basePath%>style/red.css" rel="stylesheet" type="text/css" /> 
	<link href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/common/system/selectusercheck.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/common/system/selectuserradio.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/common/global/validator.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxfileupload.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxFileZx.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectuserdutyradio.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/richangyongyu.js"></script>
      <script type="text/javascript">
		function init(){
			initselectusercheck();
			
		}
		$(function(){
			$("#gwlz_title a").get(0).href="javascript:change(1)";
			$("#gwlz_title a").get(1).href="javascript:change(2)";
			$("#gwlz_title a").get(2).href="javascript:change(3)";
			initYongYu(25);
		});
		
		function change(start){
			if(start == 1)
			{
				
				$("#li1").addClass("over");
				$("#li2").removeClass();
				$("#li3").removeClass();
				$("#span1").show();
				$("#span2").hide();
				$("#span3").hide();
			
			}
			else if(start == 2)
			{
				$("#li2").addClass("over");
				$("#li1").removeClass();
				$("#li3").removeClass();
				$("#span2").show();
				$("#span1").hide();
				$("#span3").hide();
			
			}
			else if(start == 3)
			{
				$("#li3").addClass("over");
				$("#li2").removeClass();
				$("#li1").removeClass();
				$("#span3").show();
				$("#span1").hide();
				$("#span2").hide();
				
			}
			
		}
		function f_submit(){
				if(istextareanull("#yijian","请填写意见")
				&&istextarealength("#yijian",100,"意见长度不能超过100")
				&&isnull("input[name='chengbanbumenid']","请选择承办部门部长")){
					Ext.MessageBox.show({
			           title:'消息',
			           msg: '是否执行此操作?',
			           buttons: Ext.MessageBox.YESNO,
			           fn: function(btn){
			           	  if(btn == 'yes'){
			           	  	msg();
							document.form1.submit();
			           	  }	
			           },
			           icon: Ext.MessageBox.QUESTION
			  		});
				}
		}
	</script>
				<!-- 执行上传文件操作的函数 -->
<script type="text/javascript">
var deleteFile;
var alreadyUploadFile='';
var uploadUrl='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUpload.do?method=uploader';
var deteleFileUrl='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUpload.do?method=deleted';
</script>	
  </head>
  <body onload="init()">
  	<form action="<%=basePath %>tjsinfo/tjsoa/xingzhengshouwen/shenpi.do?method=bangongshi" method="post" name="form1">
  	 <div id="files" style="display: none;"></div>
   <div id="rightindex" style="height: 97%">
   <div id="tabtj"> 
      <!--导航开始处-->
      <div id="ttt">
        <div id="gwlz_title">
            <ul>
                <li  class="over" id="li1"><a href="#"><span>收文承办单</span></a></li>
                <li id="li2"><a href="#"><span>附件</span></a></li>
                <li  id="li3"><a href="#"><span>办理</span></a></li>
            </ul>
            <div style="text-align: right;padding-right: 10px"><a href="javascript:history.go(-1)"><img src="<%=basePath %>images/fanhui111.gif"/></a>&nbsp;
            <a href="<%=basePath %>tjsinfo/tjsoa/xingzhengshouwen/shenpi.do?method=print&id=<%=xingzhengshouwenNeirong.getId() %>" target="_blank"><img src="<%=basePath %>images/dayin.gif"/></a></div>
        </div>
        <div style="overflow-x:hidden;overflow-y:auto; height:93%">
        <div class="swcbdtab"  id="span1">
        			<table width="95%" border="0" cellspacing="0" cellpadding="0" class="file_rq" align="center">
  <tr>
    <th height="60">文&nbsp;件&nbsp;阅&nbsp;办&nbsp;单</th>
  </tr>
  <tr>
    <td align="center">
    	<table width="80%" border="0" cellspacing="0" cellpadding="0" class="file_rq_do1">
          <tr>
            <td width="12%"><h1>来文机关</h1></td>
            <td width="28%"><%=xingzhengshouwenNeirong.getLaiwenjiguan() %>&nbsp;</td>
            <td width="19%"><h1>来文字号</h1></td>
            <td width="19%"><%=xingzhengshouwenNeirong.getLaiwenzihao() %>&nbsp;</td>
            <td width="11%"><h1>份数</h1></td>
            <td width="11%">
            <%
                    		if(xingzhengshouwenNeirong.getFengshu()  == null)
                    		{
                    	%>
                    		&nbsp;
                    	<% 		
                    		}
                    		else
                    		{
                    	%>
                    		<%=xingzhengshouwenNeirong.getFengshu() %>
                    	<% 		
                    		}
                    	%>
            &nbsp;</td>
          </tr>
          <tr>
            <td><h1>收文编号</h1></td>
            <td><%=xingzhengshouwenNeirong.getShouwenbianhao() %>&nbsp;</td>
            <td><h1>收文日期</h1></td>
            <td><%=ToolKit.getFormatDate(xingzhengshouwenNeirong.getShouwenriqi(),"yyyy年MM月dd日") %>&nbsp;</td>
            <td><h1>密级</h1></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="50"><h1>来文标题</h1></td>
            <td colspan="5">
            <%
                    			       if(xingzhengshouwenNeirong.getZhaiyou()  == null)
                    		{
                    	%>
                    		&nbsp;
                    	<% 		
                    		}
                    		else
                    		{
                    	%>
                    		<%=xingzhengshouwenNeirong.getZhaiyou()%>
                    	<% 		
                    		}
                    	%>
            &nbsp;</td>
          </tr>
        </table>
        <table width="80%" border="0" cellspacing="0" cellpadding="0"  class="file_rq_do3">
          <tr>
            <td width="7%"><h1><br />拟<br />办<br />意<br />见<br /><br /></h1></td>
            <td width="93%">
            	<%
            		Iterator iterator1 = xingzhengshouwenNeirong.getTXingzhengshouwenYijians().iterator();
            		while(iterator1.hasNext())
            		{
            			TXingzhengshouwenYijian yijian = (TXingzhengshouwenYijian)iterator1.next();
            			if("请办".equals(yijian.getFlowName()) || "党办主任办理".equals(yijian.getFlowName()) )
            			{
            	%>
            		<table width="60%" border="0" cellspacing="0" cellpadding="0"  class="file_rq_do2">
	                	<tr>
	                    	<td style="text-align:left"><%=yijian.getOpinion() %></td>
	                    </tr>
	                    <tr>
<td><font style="color:#000;font-size:18px;" face="仿宋_GB2312"><b><%=yijian.getExamineUserName()%></b></font></td>
	                    </tr>
	                    <tr>
	                    	<td style="text-align:right"><%=ToolKit.getFormatDate(yijian.getExamineDate(),"yyyy年MM月dd日") %></td>
	                    </tr>
               		 </table>
                    
            	<% 			
            			}
          		
            		}
            	%>
            	&nbsp;
                
            </td>
          </tr>
          <tr>
            <td width="7%"><h1><br />领<br />导<br />批<br />示<br /><br /></h1></td>
            <td width="93%">
            <%
            		Iterator iterator2 = xingzhengshouwenNeirong.getTXingzhengshouwenYijians().iterator();
            		while(iterator2.hasNext())
            		{
            			TXingzhengshouwenYijian yijian = (TXingzhengshouwenYijian)iterator2.next();
            			if("传阅".equals(yijian.getFlowName())  )
            			{
            	%>
            		<table width="60%" border="0" cellspacing="0" cellpadding="0"  class="file_rq_do2">
	                	<tr>
	                    	<td style="text-align:left"><%=yijian.getOpinion() %></td>
	                    </tr>
	                    <tr>
<td><font style="color:#000;font-size:18px;" face="仿宋_GB2312"><b><%=yijian.getExamineUserName()%></b></font></td>
	                    </tr>
	                    <tr>
	                    	<td style="text-align:right"><%=ToolKit.getFormatDate(yijian.getExamineDate(),"yyyy年MM月dd日") %></td>
	                    </tr>
               		 </table>
                    
            	<% 			
            			}
          		
            		}
            	%>
            &nbsp;</td>
          </tr>
          <tr>
            <td width="7%"><h1><br />部<br />室<br />承<br />办<br />意<br />见<br /><br /></h1>
              </td>
            <td width="93%">
            <%
            		Iterator iterator3 = xingzhengshouwenNeirong.getTXingzhengshouwenYijians().iterator();
            		while(iterator3.hasNext())
            		{
            			TXingzhengshouwenYijian yijian = (TXingzhengshouwenYijian)iterator3.next();
            			if("承办".equals(yijian.getFlowName())|| "部长承办".equals(yijian.getFlowName())||"审阅".equals(yijian.getFlowName()))
            			{
            	%>
            		<table width="60%" border="0" cellspacing="0" cellpadding="0"  class="file_rq_do2">
	                	<tr>
	                    	<td style="text-align:left"><%=yijian.getOpinion() %></td>
	                    </tr>
	                    <tr>
<td><font style="color:#000;font-size:18px;" face="仿宋_GB2312"><b><%=yijian.getExamineUserName()%></b></font></td>
	                    </tr>
	                    <tr>
	                    	<td style="text-align:right"><%=ToolKit.getFormatDate(yijian.getExamineDate(),"yyyy年MM月dd日") %></td>
	                    </tr>
               		 </table>
                    
            	<% 			
            			}
          		
            		}
            	%>
            &nbsp;</td>
          </tr>
        </table>
        
        <table width="80%" border="0" cellspacing="0" cellpadding="0"  class="file_rq_do3">
          <tr>
            <td width="7%"><h1><br />备<br />注<br /><br /></h1></td>
            <td width="93%">&nbsp;</td>
          </tr>
        </table>
    </td>
  </tr>
</table>
        
        </div>
       
        <div class="swcbdtab" style="display: none;" id="span2">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:80px">
              <tr>
                <td align="center">
                    <table width="564" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img src="images/tjfj01.gif" /></td>
                      </tr>
                      <tr>
                        <td><div class="tjfjcontent">
                                <table width="90%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                                
        						<%
                                		Iterator iterator = xingzhengshouwenNeirong.getTXingzhengshouwenFujians().iterator();
                                		while(iterator.hasNext())
                                		{
                                			TXingzhengshouwenFujian xingzhengshouwenFujian = (TXingzhengshouwenFujian)iterator.next();
                                	%>
                                		<a href="<%=basePath %>tjsinfo/tjsoa/xingzhengshouwen/shenpi.do?method=download&id=<%=xingzhengshouwenFujian.getId() %>" target="_blank" oncontextmenu="window.event.returnValue=false"><%=xingzhengshouwenFujian.getFujianName() %></a><br/>
                                	<% 		
                                		}
                                	%>
        				         
        				         
                                </table>
                            </div></td>
                      </tr>
                      <tr>
                        <td><img src="images/tjfj03.gif" /></td>
                      </tr>
                    </table>
                    <a href="javascript:history.go(-1)"><img src="images/qx.gif" /></a>
                </td>
              </tr>
          </table>
        	
        	
        </div>
        <div class="swcbdtab"  id="span3" style="display: none;">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:60px">
              <tr>
                <td align="center">
                    <table width="564" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img src="images/bl01.gif" /></td>
                      </tr>
                      <tr>
                        <td><div class="blcontent">
                                <table width="90%" height="100%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                        		   <tr>
                                    <td width="30%" align="center">日常用语:</td>
                                    <td colspan="2" align="left" >
                                    	 <select id="changyongyongyu" ></select>
                                    </td>
                                  </tr>
                        		   <tr>
                                    <td width="30%" align="center">意见:</td>
                                    <td colspan="2" align="left">
                                    	 <textarea cols="50" rows="5" name="yijian" id="yijian"></textarea>
                                    </td>
                                  </tr>
                                   <tr>
                                    <td width="30%" align="center">选择承办部门部长</td>
                                    <td width="60%" align="left">
                                      <input name="chengbanbumenname" id="chengbanbumenname" type="text" size="60" readonly="readonly"/>
                                    </td>
                                    <td width="10%" align="left"><a href="javascript:selectusercheckwinshow('chengbanbumenid','chengbanbumenname','node')"><img src="images/yhglren.gif" /></a></td>
                                  </tr>
                                   <tr>
                                    <td width="30%" align="center">是否反馈:</td>
                                    <td colspan="2" align="left">
                                    	<input type="radio" name="fankui"  value="1" checked="checked"/>是<input type="radio" name="fankui"  value="0"/>否<br/>
                                    </td>
                                  </tr>
                                  <tr>                        
                                    <td colspan="3" height="50"><a href="javascript:f_submit()"><img src="images/an_tj.gif" /></a>&nbsp;
                                    <a href="javascript:history.go(-1)"><img src="images/qx.gif" /></a>
                                    </td>
                                	</tr>
                                </table>
                            </div></td>
                      </tr>
                      <tr>
                        <td><img src="images/bl03.gif" /></td>
                      </tr>
                    </table>
                </td>
              </tr>
          </table>
        </div>
   	  </div>
   	  </div> 
   </div>
</div>
	 	  <input  type="hidden" name="id" value="<%=xingzhengshouwenNeirong.getId() %>"/>
   	  	<input  type="hidden" name="taskid" value="<%=taskid %>"/>
   	  	 <input  type="hidden" name="flowid" value="<%=xingzhengshouwenNeirong.getFlowid() %>"/>
   	  	   <input id="basePath" value="<%=basePath%>" type="hidden"/>
   	  <input id="node" value="" type="hidden"/>
   	  <input id="chengbanbumenid" value="" type="hidden" name="chengbanbumenid"/>
   	  
</form>
  </body>
</html>
